package com.lagou.ex.mybatis.base.model;

import lombok.*;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class UserModel {
    /**
     * 状态：ENABLE能登录，DISABLE不能登录
     */
    public static final String STATUS_YES = "ENABLE";
    public static final String STATUS_NO = "DISABLE";
    /**
     * 是否删除：1删除 0存在
     */
    public static final Integer DEL_YES = 1;
    public static final Integer DEL_NO = 0;
    private Integer id;
    private String name;
    private String portrait;
    private String phone;
    private String password;
    private String regIp;
    private Integer accountNonExpired;
    private Integer credentialsNonExpired;
    private Integer accountNonLocked;
    private String status;
    private Integer isDel;
    private LocalDateTime createTime;
    //private public
    protected LocalDateTime updateTime;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
